import requests


def get_token():
    resp = requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                         json={"mobile": "13800000002", "password": "123456"})
    data = resp.json().get("data")
    return {"Authorization": data}


if __name__ == '__main__':
    ret = get_token()
    print(ret)
